$(document).ready(function(){
	$("#ddda").click(function(){
		$.getJSON("bk/login", { 'uname':$("#uname").val(),'password':$("#password").val()},function(json){
			  console.log(json);
			  console.log(uname);
			  console.log(password);
			  var rs=json.rs;
			  if(rs=="true"){
				  $("#upwd6").hide()
					$("#ddda").attr("disabled",true);
			    window.location.href="index.html";	
			  }else{
				  $("#ddda").attr("disabled",false);
					$("#upwd6").show();	 
			       }
		});
	});
});